package com.fanghuaiming.tsec.pay.order.spi.fallback;

import com.fanghuaiming.tsec.common.model.enumeration.ResultEnum;
import com.fanghuaiming.tsec.common.model.order.TsecOrder;
import com.fanghuaiming.tsec.pay.order.spi.TsecOrderFeignClient;
import org.springframework.stereotype.Component;

/****
 * @description: 订单微服务熔断降级
 * @version:1.0.0
 * @author fanghuaiming
 * @data Created in 2020/11/27 下午6:01
 *
 */
@Component
public class TsecOrderFeignClientFallBack implements TsecOrderFeignClient {

    @Override
    public String createOrder(TsecOrder tsecOrder) {
        return ResultEnum.FALL_BACK.getMessage();
    }
}
